package com.movie.ticket.sale.moviecommon.model;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import org.springframework.data.annotation.Id;
import org.springframework.data.redis.core.RedisHash;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 
 * </p>
 *
 * @author Ticket
 * @since 2020-12-05
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@RedisHash("TCinemaContract")
public class TCinemaContract implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 影院的合同
     */
    @Id
    private Integer id;

    /**
     * 影院id
     */
    private Integer cinemaId;

    /**
     * 合同的地址
     */
    private String path;

    /**
     * 合同的编号
     */
    private String number;

    /**
     * 合同版本
     */
    private String version;

    /**
     * 签名的地址
     */
    private String signImg;

    /**
     * 时间
     */
    private LocalDateTime createTime;

    /**
     * 修改合同的次数
     */
    private Integer count;

    /**
     * 0待签订  1待BOSS审核 2BOSS驳回  3BOSS同意 4作废 5已签订
     */
    private Integer state;


}
